package com.jiyun.controller;

import com.jiyun.entity.Compony;
import com.jiyun.service.ComponyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Compony)表控制层
 *
 * @author makejava
 * @since 2020-11-12 14:03:45
 */
@Controller
public class ComponyController {
    /**
     * 服务对象
     */
    @Autowired
    private ComponyService componyService;
    @ResponseBody
    @RequestMapping("findA")
    public List<Compony> findA(Integer cid){
        List<Compony> list = componyService.find(cid);
        return list;
    }
    
}